// ChildView.h : interface of the CChildView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_CHILDVIEW_H__3C7E9511_ECBC_4AC5_81F2_7BAE45A6C35E__INCLUDED_)
#define AFX_CHILDVIEW_H__3C7E9511_ECBC_4AC5_81F2_7BAE45A6C35E__INCLUDED_

#include "Game.h"	// Added by ClassView
#include "Block.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CChildView window

class CChildView : public CWnd
{
// Construction
public:
	CChildView();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChildView)
	protected:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation

	
	CBlock m_NextBlock;
	RECT m_AreaNextBlock;//showing the next block
	CBlock m_CurrentBlock;
	CGame m_Game;
    int m_nSpeed;
 public:  
	 void UpdateSpeed();
	 void ShowInfo(CDC &DC);
	 void UpdateNextArea();
	void NewBlock(); 
	void ShowString(CString str);
	virtual ~CChildView();

	// Generated message map functions
protected:
	int Random(int speed);
	
	//{{AFX_MSG(CChildView)
	afx_msg void OnPaint();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnStart();
	afx_msg void OnPause();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CHILDVIEW_H__3C7E9511_ECBC_4AC5_81F2_7BAE45A6C35E__INCLUDED_)
